<el-dialog :close-on-click-modal="false"  :close-on-press-escape="false"  class="dialogStyleBase" :title="mixinEdit_editTitle" width="500px" :visible.sync="mixinEdit_editVisible"
    :before-close="function(){mixinEdit_editBoxClose('editForm')}" append-to-body>
    <div class="dialogStyleBaseBox" v-loading="isloading">
        <el-form ref="editForm" :model="form" label-width="100px" label-position="left">
            <el-form-item label="商品名称" v-if="type == 'single'">
                <el-input v-model="productName" disabled></el-input>
            </el-form-item>
            <el-form-item label="活动价" prop="discountType">
                <el-radio-group v-model="form.discountType">
                    <el-radio :label="1">固定折扣</el-radio>
                </el-radio-group>
            </el-form-item>

            <el-form-item label="折扣" prop="discountValue"
                :rules="[{trigger: ['blur', 'change'] ,validator:function(rule, value, callback){validator(rule, value, callback)}}]">
                <el-input v-model="form.discountValue"></el-input>
            </el-form-item>
        </el-form>
    </div>
    <div slot="footer">
        <el-row>
            <el-col :span="24">
                <el-button :disabled="isloading" @click="mixinEdit_editBoxClose('editForm')">取 消</el-button>
                <el-button :disabled="isloading" type="primary" @click="submit">确定</el-button>
            </el-col>
        </el-row>
    </div>
</el-dialog>